package com.itheima.d2_lambda;

import com.itheima.d1_arrays.Student;

public class CompareDataClass {
    public static int compareDataByAge(Student stu1, Student stu2) {
        return stu2.getAge() - stu1.getAge();
    }

    public int compareDataByAgeDesc(Student stu1, Student stu2) {
        return stu1.getAge() - stu2.getAge();
    }
}
